import App from "../App";
import City from "../pages/city";
import Home from "../pages/home";
import Message from "../pages/message";
import Order from "../pages/order";
import User from "../pages/user";
import {createBrowserRouter} from 'react-router-dom'

export const router = createBrowserRouter([
    {
        path: "/",
        element: <App></App>,
        children: [
            {
                index: true,
                element: <Home></Home>
            },
            {
                path: "home",
                element: <Home></Home>
            },
            {
                path: "order",
                element: <Order></Order>
            },
            {
                path: "message",
                element: <Message></Message>
            },
            {
                path: "user",
                element: <User></User>
            },
        ]
    },
    {
        path: "/city",
        element: <City></City>
    },
]);